package com.nio;

import java.nio.ByteBuffer;

/**
 * Created by buguniao on 15/12/6.
 */
public class Test {
    public static void main(String[] args){
       /* byte[] rotation = new byte[95*2];
        for(byte i=' ';i<='~';i++){
            rotation[i-' ']=i;
            rotation[i-' '+95]=i;
        }

        for(int i=0;i<rotation.length;i++){
            System.out.print((char)rotation[i]);
        }*/

        ByteBuffer bf = ByteBuffer.allocate(10);
        for(int i=0;i<10;i++){
            bf.put((byte)i);
        }
        System.out.println(bf);

    }
}
